searchGoods = (keywords)->
	document.getElementById('q')?.value = keywords
	document.getElementById('J_TSearchForm')?.submit()

chrome.extension.sendRequest {keyword:1}, (response)->
	if response && response.buy and response.buy.keyword
		setTimeout( ->
			searchGoods response.buy.keyword
		,4000)
